<form class="am-form am-form-horizontal" id="api_form" method="post" action="{{urlfor "ApiController.AddPost"}}" data-am-validator>
    <div class="am-form-group">
        <label for="doc-ipt-3" class="am-u-sm-2 am-form-label">名称</label>
        <div class="am-u-sm-10">
            <input type="text" name="Name" class="am-form-field" required>
        </div>
    </div>

    <div class="am-form-group">
        <label for="doc-ipt-pwd-2" class="am-u-sm-2 am-form-label">URL</label>
        <div class="am-u-sm-10">
            <input type="text" name="Url" class="am-form-field" required>
        </div>
    </div>


    <div class="am-form-group">
        <label for="doc-ipt-pwd-2" class="am-u-sm-2 am-form-label">方法类型</label>
        <div class="am-u-sm-10">
            <select name="Method"  required>
                <option value="get">GET</option>
                <option value="post">POST</option>
                <option value="put">PUT</option>
                <option value="delete">DELETE</option>
            </select>
        </div>
    </div>
    <div class="am-form-group">
        <label for="doc-ipt-pwd-2" class="am-u-sm-2 am-form-label">超时时间</label>
        <div class="am-input-group  am-u-sm-10">
            <input type="number" name="Timeout" class="am-form-field " min=1>
            <span class="am-input-group-label ">毫秒</span>
        </div>
    </div>

    <div class="am-panel am-panel-primary" style="padding-top: 10px">
        <div class="am-form-group">
            <label for="doc-ipt-pwd-2" class="am-u-sm-2 am-form-label">验证位置</label>
            <div class="am-input-group  am-u-sm-10">
                <select data-am-selected=" {btnSize:'sm'}" name="VerifyType">
                    <option value="code">状态码</option>
                    <option value="body">body</option>
                </select>
            </div>
        </div>

        <div class="am-form-group">
            <label for="doc-ipt-pwd-2" class="am-u-sm-2 am-form-label">验证方法</label>
            <div class="am-input-group  am-u-sm-10">
                <select data-am-selected=" {btnSize:'sm'}" name="VerifyRule">
                    <option value="include">包含</option>
                    <option value="exclude">不包含</option>
                    <option value="equals">等于</option>
                    <option value="neq">不等于</option>
                </select>

            </div>
        </div>

        <div class="am-form-group">
            <label for="doc-ipt-pwd-2" class="am-u-sm-2 am-form-label">验证内容</label>
            <div class="am-input-group  am-u-sm-10">
                <textarea class="" rows="5" id="doc-ta-1" name="VerifyValue" required></textarea>

            </div>
        </div>
    </div>


    <div class="am-form-group" >
        <div class="am-u-sm-10 am-u-sm-offset-2">
            <button type="submit" class="am-btn am-btn-default">提交</button>
        </div>
    </div>
</form>


